xen/device-tree: Add dt_property_read_variable_u32_array helper
authorRahul Singh <rahul.singh@arm.com>
Tue, 28 Sep 2021 18:18:15 +0000 (19:18 +0100)
committerStefano Stabellini <stefano.stabellini@xilinx.com>
Fri, 1 Oct 2021 01:25:19 +0000 (18:25 -0700)
commit1907cfc8b2ac516cde82a7e6acf0ee244c263adf
tree943807a6d66d3b1dd10aeb8c452a6616869a16ec
parenta3a476fb744d4c516838353f3bc6a42d03e031a3
xen/device-tree: Add dt_property_read_variable_u32_array helper

Based Linux commit a67e9472da423ec47a3586920b526ebaedf25fc3

Import the Linux helper of_property_read_variable_u32_array. This
function find and read an array of 32 bit integers from a property,
with bounds on the minimum and maximum array size.

Signed-off-by: Rahul Singh <rahul.singh@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
xen/common/device_tree.c
xen/include/xen/device_tree.h